﻿using System;

namespace TestApp.WebService.Parsers
{
    public abstract class Parser
    {
        
        // This method will be overriden
        public abstract object ParseResults(WSResponse response);

        // Parse error
        public WSException ParseError(WSResponse response)
        {
            // We should parse the error message here, if any
            return new WSException(response.StatusCode, "Connection error!");
        }
    }
}
